package thursday;

public class Bank {
    private String account;
    private String passwd;
    private double savings;

    //static
    private static double rate=0.025;
    private static double mini=10.00;
    private static int accountnumber=0;

    //用自增
    public Bank() {
        this.account = "A" + (accountnumber++);
    }


    public Bank(String passwd,double savings){
        this.passwd=passwd;
        this.savings=savings;
    }
    public String getAccount() {
        return account;
    }
    public String getPasswd() {
        return passwd;
    }

    public void setPasswd(String passwd) {
        this.passwd = passwd;
    }

    public double getSavings() {
        return savings;
    }

    public void setSavings(double savings) {
        this.savings = savings;
    }

    public static double getRate() {
        return rate;
    }

    public static double getMini() {
        return mini;
    }

    public int getAccountnumber() {
        return accountnumber;
    }




}
